package com.zyq.service.impl;

import com.zyq.dao.PersonDao;
import com.zyq.entity.Person;
import com.zyq.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ZYQ on 2019/1/25.
 */
@Service("personService")
public class PersonServiceImpl implements PersonService{
    @Resource
    private PersonDao personDao;
    @Override
    public List<Person> SelectAll() {
        return personDao.SelectAll();
    }

    @Override
    public Person SelectByid(int id) {
        return personDao.SelectByid(id);
    }
}
